package com.huabo.system.oracle.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 审批流程开关
 * @Description: TODO
 * @author: songxiangying
 * @date 2017年2月13日 上午10:32:04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("TBL_PROCESS_SETTING")
@ApiModel(value="ProcessSetting")
public class ProcessSetting implements Serializable{

	public  final static String OFF="OFF";//关闭
	public final static String ON="ON";//开启
	
	private static final long serialVersionUID = 1L;

	@TableId("SETTINGID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY,generator = "select HIBERNATE_SEQUENCE.nextval from dual")
	private BigDecimal settingId;
	@TableField("STATUS")
	private String status;//状态
	@TableField("MODULE")
	private String module; //模块名称
	@TableField("REMARK")
	private String remark;//备注
	@TableField("ORGID")
	private BigDecimal orgid;//备注
	@TableField("ORGID")
	private String orgname;//组织名称
	@TableField("COMPANYID")
	private BigDecimal companyid;//备注

	@Transient
	private TblOrganization tblOrganization;
	@Transient
	private TblOrganization company;

	
	
}
